#include<stdlib.h>
#include<stdio.h>

int main(){
    int i[3][2]={{10,20},{30,40},{50,60}};
    int j,k;
    int (*pi)[2];
    pi=i;

    for(j=0;j<3;j++){
        for(k=0;k<2;k++){
            printf("&i[%d][%d]=%p\t",j,k,&i[j][k]);
        }
        printf("\npi+%d=%p\n",j,pi+j);
    }

    printf("*pi=%p\t",pi);
    printf("*pi+1=%p\n",pi+1);

    printf("pi[0][0]=%d\t",**pi);//用*pi[0]替代了原文的pi[0][0]，效果相同；同理，替换为**pi的结果也一致。
    printf("pi[1][0]=%d\n",pi[1][0]);

    printf("(*(*(pi+1)+1)=%d\n",*(*(pi+1)+1));
    printf("*(*pi+1)=%d\n",*(*pi+1));

    system("pause");
    return 0;
}